package _2ChouXiangGongChang.abst;



/**
 * @BaseFactory: 抽象工厂类 的 子类
 * @author: ZBoHang
 * @time: 2021/9/1 16:28
 */
public class BaseFactory extends  AbsFactory{

    @Override
    public <T extends Operation> T create(Class clz) {
        Operation oper = null;
        try {
            oper = (Operation) Class.forName(clz.getName()).newInstance();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return ((T) oper);
    }
}
